﻿using System.ComponentModel.DataAnnotations;

namespace MagicWorld.DDD.Domain.Types
{
    public class MonsterId
    {
        private readonly long value;
        public long Value => value;

        public MonsterId(long value)
        {
            if (value < 0)
            {
                throw new ValidationException("MonsterId ERROR");
            }
            this.value = value;
        }
        public static MonsterId New => new MonsterId(0);
    }
}